<?php
/*
	本插件：$this->model('model')->方法名();
	其他地方调用：model('jy_xiaofeelian/model')->方法名();
*/
namespace jy_shopmerch;
defined('BY_JYA') or exit('error');
class red extends \plugin{
	public function gored($city=''){
		return $red;
	}
	public function addsendredlog($city='',$info=array()){
		return true;
	}
	public function getred($uid=0,$sendredlogid=0){
		return true;
	}
	public function addmyfee($cityid=0,$uid=0,$city=''){
		return $myfee;
	}
	public function upmyfee($sendlog=array(),$uid=0,$fee=0,$type=0,$isjian=0){
		return true;
	}
	public function addredlog($sendlog=array(),$fee='',$infokey='',$uid='',$type=0){
		
		return $true;
	}
	public function hexiao($post=array()){
		return true;
	}
	private function getRand($proArr){
		$result = '';
		$proSum = array_sum($proArr);
		foreach ($proArr as $key => $proCur) {
			$randNum = mt_rand(1, $proSum);
			if ($randNum <= $proCur) {
				$result = $key;
				break;
			}
			$proSum -= $proCur;
		}
		unset($proArr);
		return intval($result);
	}
}
?>